<%@page import="entidades.*"%>
<%@page import="controller.*"%>
<%@page import="persistence.AccesoBD" %>
<%
    GenerarHTMLDetallesProp html=new GenerarHTMLDetallesProp();
    AccesoBD abd =((AccesoBD)session.getAttribute("conex"));
    String username,subMenu;
        if(session.getAttribute("username")==null){
           username="Usuario";
           subMenu="Login.jsp";
        }else{
            username= (String)session.getAttribute("username");
            subMenu="salir.jsp";
        }
    try{
        //InicializacionDeLaTransaccion;
        abd.iniciarTransaccion();
        out.print(html.generarHTMLHeadUno("Buscador de Prop."));
        out.print(html.generarHTMLMenu(username,subMenu));
        out.print(html.generarHTLMColumnaUno());
        out.print(html.generarHTMLColumnaCuatro());
        out.print(html.generarHTMLColumnaDos());
        out.print(html.generarHTMLColumnaTres());
        out.print(html.generarHTMLFooter());
        //ConcretaLaTransaccion;
        abd.concretarTransaccion();
   }catch(Exception e){
        //DeshaceLosCambiosEnLaBD
        abd.rollbackTransaccion();
        System.out.println(e);
   }
%>